package kr.co.insoft.core.constant;

public enum CloudEndPoints {	
	AMAZON {
		/*
		 * (non-Javadoc)
		 * 
		 * @see kr.co.insoft.driver.model.CloudSponsor#getProvider()
		 */
		@Override
		public String getCloudEndPoint(String region) {
			return region+aws_endPoint;
		}
	},
	RACKSPACE_US {
		/*
		 * (non-Javadoc)
		 * 
		 * @see kr.co.insoft.driver.model.CloudSponsor#getProvider()
		 */
		@Override
		public String getCloudEndPoint(String region) {
			return "";
		}
	},
	RACKSPACE_UK {			
		/*
		 * (non-Javadoc)
		 * 
		 * @see kr.co.insoft.driver.model.CloudSponsor#getProvider()
		 */
		@Override
		public String getCloudEndPoint(String region) {
			return "";
		}
	},
	OPENSTACK {
		/*
		 * (non-Javadoc)
		 * 
		 * @see kr.co.insoft.driver.model.CloudSponsor#getProvider()
		 */
		@Override
		public String getCloudEndPoint(String region) {
			return openstack_endPoint;
		}
	};
	
	public abstract String getCloudEndPoint(String region);
	
	/* TODO OPENSTACK endpoint설정 */
	static String openstack_endPoint = "";
	static String aws_endPoint = ".ec2.amazonaws.com";
}
